4f3bb5
@@ -138,6 +138,11 @@
public Method getEvalMethod(List<TypeInfo> argTypeInfos) throws UDFArgumentExcep
         }
       }
     }
+
+    if (udfMethod == null) {
+      throw new NoMatchingMethodException(udfClass, argTypeInfos, null);
+    }
+
     return udfMethod;
   }
 }
